# 接口基础
namespace java com.thrift.api

struct BaseResponse {
  1: optional i32 code,
  2: optional string msg,
  3: optional string dataType,
  4: optional string data,
  5: optional string extra1,
  6: optional string extra2,
  7: optional string extra3,
  8: optional string extra4,
  9: optional string extra5,
  10: optional string extra6,
  11: optional string extra7,
  12: optional string extra8,
  13: optional string extra9
}

exception BaseException {
  1: optional i32 code,
  2: optional string message,
  3: optional i64 datetime
}

struct BaseRequest {
  1: optional string serviceName,
  2: optional string methodName,
  3: optional list<string> paramTypes,
  4: optional list<string> params,
  5: optional map<string,string> header,
  6: optional string extra1,
  7: optional string extra2,
  8: optional string extra3,
  9: optional string extra4,
  10: optional string extra5,
  11: optional string extra6,
  12: optional string extra7,
  13: optional string extra8,
  14: optional string extra9
}


service BasicService {
    BaseResponse send(1:BaseRequest req) throws (1:BaseException e)
}
